/**
 * 文章管理
 */

import React ,{ Component} from 'react';

import { StoreProvider } from 'iflux2';
import AppStore from './store.js';
import Articles from './container/index.js'

@StoreProvider( AppStore)
export default class AppContainer extends Component {
    componentDidMount() {
        //获取所有文章
        //this.props.store.fetchArticles();
        //获取文章栏目列表
        this.props.store.fetchArticleSections();
         //获取域名
        this.props.store.fetchDomain();
    }
    
    render () {
        return (
            <div>
                <Articles />
            </div>
        )
    }
}